<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/main.js"></script>
</head>
<body>
<div class="main">
    <div class="header">
        <div class="headerL">
            <img src="images/u7.png">
            <div class="name">
                <p class="name1">
                    山东大学附属儿童医院
                </p>
                <p class="des">
                    Childern’s Hospital Affiliated to Shandong Universitry
                </p>
            </div>
        </div>
        <div class="headerR">
            <span id="kyear"></span>
            <span id="ktime"></span>
        </div>
    </div>
    <div class="con">
        <div class="title">
            <a class="goBack">返回</a>
            <span id="timeOut"></span>
        </div>
        <div class="daying">
            <p>
                <img src="images/u155.png">
            </p>
            <h2>
                打印中 , 请稍后 ….
            </h2>
        </div>
        <div class="window" style="display: none">
            <div class="success">
                <h2 id="titleWindow">
                    打印成功
                </h2>
                <p id="messageWindow">
                    打印成功 , 请及时取走报告
                </p>
                <a class="goIndex">
                        <img src="images/pcg.png">
                </a>
            </div>
        </div>
    </div>
    <div class="footer">
        <img src="images/u29.svg">
        0531-87964999
    </div>
</div>

</body>
<script>
    $(function () {
        function daojishiPrint () {
            var timeOut7 = 6
            $('#timeOut').html(timeOut7 + ' 秒')
            setInterval(function () {
                $('#lastTime').val(timeOut7)
                timeOut7 = timeOut7 - 1
                if (timeOut7 <= 0) {
                    $(".window").show()
                    setTimeout(function () {
                        $(".window").hide();
                        window.location.href = 'index.html';
                    }, 5000)
                } else {
                    $('#timeOut').html(timeOut7 + ' 秒')
                }
            }, 1000)
        }
        daojishiPrint()
    })
</script>
</html>
